﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BloomsburyBanHang.DAO
{
    public class NhaXuatBanDAO
    {
        public static NHA_XUAT_BAN TimNXBTheoMa(int maNXB)
        {
            NhaBanLeDataContext db = new NhaBanLeDataContext();
            var query = from hd in db.NHA_XUAT_BANs
                        where hd.MaNhaXuatBan == maNXB
                        select hd;

            return query.First<NHA_XUAT_BAN>();

        }
    }
}